﻿@model bonus.Models.User
@{
	Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
	ViewBag.Title = "个人中心";
}

@section Top {
	@Html.Partial("_Top")
}
<style>
	.table tr td {
		vertical-align: middle;
	}

		.table tr td:first-child {
			width: 50%;
		}
</style>
<div class="container-fluid">
	<ol class="breadcrumb">
		<li class="breadcrumb-item">
			个人中心
		</li>
		<li class="breadcrumb-item active">资料修改</li>
	</ol>

	<div class="card card-register mx-auto mt-5">
		<div class="card-header">资料修改</div>
		<table class="table mb-0">
			<tr>
				<td class="text-right">
					<strong>用户编号:</strong>
				</td>
				<td class="text-muted">
					@Model.NO
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>姓名:</strong>
				</td>
				<td class="text-muted">

					<input class="form-control " id="userName" type="text" name="userName" aria-describedby="userName" placeholder="请输入姓名" value="@Model.Name" data-bv-field="expSuperior">
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>用户类型:</strong>
				</td>
				<td class="text-muted">
					@bonus.Models.User.TypeClass.GetType(Model.UserType)
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>用户等级:</strong>
				</td>
				<td class="text-muted">
					@bonus.Models.User.LevelClass.GetLevel(Model.Level)
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>余额:</strong>
				</td>
				<td class="text-muted">
					@Model.Money 元
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>冻结资金:</strong>
				</td>
				<td class="text-muted">
					@Model.Freeze 元
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>银行名称:</strong>
				</td>
				<td class="text-muted">
					<input class="form-control " id="BankName" type="text" name="BankName" aria-describedby="expSuperior" placeholder="请输入银行名称" value="@Model.BankName" data-bv-field="expSuperior">
				</td>
			</tr>
			<tr>
				<td class="text-right">
					<strong>银行卡号:</strong>
				</td>
				<td class="text-muted">
					<input class="form-control" id="BankNO" type="text" name="BankNO" aria-describedby="BankNO" placeholder="请输入卡号" value="@Model.BankNO" data-bv-field="expSuperior">
				</td>
			</tr>

			@if (string.IsNullOrEmpty(Model.Card))
			{
				<tr>
					<td class="text-right">
						<strong>身份证号:</strong>
					</td>
					<td class="text-muted">
						<input class="form-control" id="Card" type="text" name="Card" aria-describedby="Card" placeholder="请输入身份证号" value="@Model.Card" data-bv-field="Card">
					</td>
				</tr>
			}
			else
			{
				<tr>
					<td class="text-right">
						<strong>身份证号:</strong>
					</td>
					<td class="text-muted">
						@Model.Card
					</td>
				</tr>
			}
			@if (string.IsNullOrEmpty(Model.UserName))
			{
				<tr>
					<td class="text-right">
						<strong>身份证姓名:</strong>
					</td>
					<td class="text-muted">
						<input class="form-control" id="UserName" type="text" name="Card" aria-describedby="UserName" placeholder="请输入身份证姓名" value="@Model.UserName" data-bv-field="UserName">
					</td>
				</tr>
			}
			else
			{
				<tr>
					<td class="text-right">
						<strong>身份证姓名:</strong>
					</td>
					<td class="text-muted">
						@Model.UserName
					</td>
				</tr>
			}
			<tr>
				<td class="text-right">
					<strong>注册时间:</strong>
				</td>
				<td class="text-muted">
					@Model.AddDT.ToShortDateString()
				</td>
			</tr>
		</table>
	</div>
	<div class="card-register mx-auto mt-4">
		<div class="form-group">
			<div class="row">
				<div class="col-md-12">
					<a href="javascript:void(0)" onclick="Modification()" class="btn btn-primary btn-block">修改</a>
				</div>
			</div>
		</div>
	</div>

</div>
<script src="~/Scripts/sb-admin.js"></script>
<script src="~/Scripts/MerberAmend.js"></script>


